package demo3;

public class Main {
    public static void main(String[] args) throws InterruptedException {
        MyThreadPoolExecutor myThreadPoolExecutor=new MyThreadPoolExecutor(5,5);
        for (int i = 0; i <100 ; i++) {
            int temp=i;
            myThreadPoolExecutor.submit(new Runnable() {
                @Override
                public void run() {
                    System.out.println(temp+ "    "+Thread.currentThread().getName());
                }
            });
        }
//        myThreadPoolExecutor.submit(null);
    }
}
